package com.sinosoft.web.common.converter;

import cn.com.sinux.spring.utils.ConvertUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.core.convert.converter.Converter;

/**
 * Created by Administrator on 2015/11/5.
 */
public class StringToStringConverter implements Converter<String, String> {


    public String convert(String source) {
        if (!StringUtils.isBlank(source)) {
            //①如果source为空 返回null
            return source;
        }
        return ConvertUtils.replace(source);
    }
}
